package com.gin.no_gay_alliance.viewmodel;

import com.gin.nga.bbscode.entity.BbsTag;
import com.gin.nga.response.field.pm.PrivateMessageReply;

import java.time.ZonedDateTime;
import java.util.List;

/**
 * 一条私信回复
 *
 * @author : ginstone
 * @version : v1.0.0
 * @since : 2023/9/1 15:28
 **/
public class PriMsgReplyItem {
    public List<BbsTag> nodes;
    /**
     * 标题
     */
    public String title;
    /**
     * 回复正文
     */
    public String content;
    /**
     * uid
     */
    public Long userId;
    /**
     * 时间戳
     */
    public ZonedDateTime timestamp;
    /**
     * 用户名
     */
    public String username;
    /**
     * 头像
     */
    public String avatar;

    public PriMsgReplyItem(PrivateMessageReply data) {
        this.title = data.getTitle();
        this.content = data.getContent();
        this.userId = data.getUserId();
        this.timestamp = data.getTimestamp();
        this.nodes = data.getContentNodes();

    }
}
